package com.atguigu.registration.hosp.service;

import com.atguigu.registration.model.hosp.Department;
import com.atguigu.registration.vo.hosp.DepartmentQueryVo;
import com.atguigu.registration.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @Author: Jiang Yizhi
 * @Date: 2022/4/25 7:49 PM
 */
public interface DepartmentService {

    /** 上传科室接口 */
    void save(Map<String, Object> paramMap);

    Page<Department> findPageDepartment(int page, int limit, DepartmentQueryVo departmentQueryVo);

    void remove(String hoscode, String depcode);

    /** 根据医院编号查询科室列表 */
    List<DepartmentVo> findDeptTree(String hoscode);

    /** 根据科室编号和医院编号查询科室名称 */
    String getDepName(String hoscode, String depcode);

    Department getDepartment(String hoscode, String depcode);
}
